package com.example.demo.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.time.LocalDateTime;
import lombok.Data;

/**
 * 
 * @TableName car
 */
@TableName(value ="car")
@Data
public class Car implements Serializable {
    /**
     * 购物车id
     */
    @TableId(value = "cid", type = IdType.AUTO)
    private Long cid;

    /**
     * 商品id
     */
    @TableField(value = "good_id")
    private Long goodId;

    /**
     * 加购数量
     */
    @TableField(value = "number")
    private Long number;

    /**
     * 用户账号
     */
    @TableField(value = "user_id")
    private Long userId;

    /**
     * 创建日期
     */
    @TableField(value = "create_time")
    private LocalDateTime createTime;

    /**
     * 更新日期
     */
    @TableField(value = "update_time")
    private LocalDateTime updateTime;

    /**
     * 商品图片
     */
    @TableField(value = "goods_picture")
    private String goodsPicture;

    /**
     * 商品单价
     */
    @TableField(value = "goods_price")
    private Double goodsPrice;


    /**
     * 商品名称
     */
    @TableField(value = "goods_name")
    private String goodsName;

    /**
     * 发货地
     */
    @TableField(value = "address")
    private String address;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}